﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucLogin.ascx.cs" Inherits="UserControl_WebUserControl" %>

<script language="javascript" type="text/javascript">
    function UpdateParentsLogin() {
        tb_remove();
        window.parent.location = "Default2.aspx";
    }
</script>

<div id="Box">
    <div class="box">
        <div class="bnt_close">
            <a href="#">
                <img src="images/bnt_close.png" width="50" height="50" /></a></div>
        <div class="boxW">
            <div class="boxT">
            </div>
            <div class="boxC">
                <asp:Panel ID="Panel1" runat="server" DefaultButton="Button1">
                    <table class="table_page1" width="560px" cellpadding="0" cellspacing="1">
                        <tr>
                            <td colspan="2">
                                <h2 style="border-bottom: solid 1px #ccc;">
                                    Login</h2>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: center">
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                    <ContentTemplate>
                                        <asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Red"></asp:Label>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <td class="tablecell1">
                                User name
                            </td>
                            <td class="tablecell1">
                                <div class="img_login1">
                                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                        ControlToValidate="txtEmail" ValidationGroup="login"></asp:RequiredFieldValidator>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="tablecell1">
                                Pass
                            </td>
                            <td class="tablecell1">
                                <div class="img_login1">
                                    <asp:TextBox ID="txtpass" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                                        ControlToValidate="txtpass" ValidationGroup="login"></asp:RequiredFieldValidator>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="tablecell1" align="center" colspan="2">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <asp:Button ID="Button1" runat="server" Text="LOGIN" CssClass="bt" OnClick="Button1_Click"
                                            ValidationGroup="login" />
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: center">
                                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                    <ProgressTemplate>
                                        <asp:Image ID="imgLoading" runat="server" ToolTip="Loading..." ImageUrl="~/images/loadingAnimation.gif"
                                            Style="border-width: 0px;" Width="31px" />
                                    </ProgressTemplate>
                                </asp:UpdateProgress>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
            <div class="boxB">
            </div>
        </div>
    </div>
</div>
